<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<%@ page import="pojo.Cart"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML >
<html>
	<head>
		<base href="<%=basePath%>">
		<title>商品列表</title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<meta name="viewport"
			content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />

		<link rel="stylesheet"
			href="<%=request.getContextPath()%>/admin/css/pintuer.css">
		<script src="<%=request.getContextPath()%>/admin/js/jquery.js"></script>
		<script src="<%=request.getContextPath()%>/admin/js/pintuer.js"></script>
		<style type="text/css">
#product_hote ul {
	list-style-type: none;
	text-align: center;
}
</style>
<s:if test="msg=='xiaofei'">
<script type="text/javascript">
alert("请先购买产品，才能生成自己的专属二维码！");
</script>
</s:if>

	</head>

	<body style="font-size: 12px;" class="">
		<!-- index -->
		<div style="margin-top: 10px;text-align:center;">
			<div id="product_hote">
				 <s:iterator value="products">
					<a style="display:inline-block;width:47%;text-align:left;margin-left: 2%;float:left"
						href="<%=request.getContextPath()%>/w/product!findbyid.action?product.id=<s:property value='id'/>&team.sellerid=${team.sellerid}">
						<img src="<%=request.getContextPath()%>/<s:property value='img'/>" style="width: 100%; height:120px;" />
						<div style="background-color: #F5F5F5;">
						<p style="margin-bottom: 0">&nbsp;&nbsp;<s:property value="title"/></p>
						<p style="margin-top:-5px;color:red;">&nbsp;￥<s:property value="price" /></p>
						</div>
					</a>
			   </s:iterator>
			</div>
		</div>
	    <div style="clear:both;width:100%;height:45px;"></div>
	
		<s:include value="/w/tmpfoot.jsp"></s:include>
		
	</body>
</html>